Cavern

 Cavern4D

 Cavernize

  Cavernizer

  SurroundUpmixer

  GenerateSamples(int)

  GetChannels()

  loop

  matrixUpmix

  OnPlaybackFinished

  Readable(ReferenceChannel)

  RetrieveSamples(ReferenceChannel)

  SurroundUpmixer(Clip)

  SurroundUpmixer(Clip, bool)

  timeSamples

 Debug

 FilterInterfaces

 Filters

 Format

 Helpers

 QuickEQ

 Remapping

 SpecialSources

 Spoofer

 Utilities

 Virtualizer

 Atmosphere

 AudioClip3D

 AudioListener3D

 AudioListener3DInspector

 AudioSource3D

 CavernizeRealtime

 Channel

 Clip

 Environments

 Jack

 Listener

 QualityModes

 Rolloffs

 SeatAdaptation

 Source

class SurroundUpmixer

Creates 5.1 or 7.1 mixes from any legacy stream by matrix upmixing. Keeps any additional channels.
VisibilityPublic

Public functions

void GenerateSamples(int samples)Generate the next samples to be retrieved with RetrieveSamples(ReferenceChannel).
ReferenceChannel[] GetChannels()Returns an array of all channels that are required to play this upmixed source.
bool Readable(ReferenceChannel channel)Returns if the given channel was updated the last time GenerateSamples(int) was called.
float[] RetrieveSamples(ReferenceChannel channel)Retrieve samples generated with GenerateSamples(int).
Constructor SurroundUpmixer(Clip source)Creates 5.1 or 7.1 mixes from any legacy stream by matrix upmixing. Keeps any additional channels.
Constructor SurroundUpmixer(Clip source, bool matrixUpmix)Creates 5.1 or 7.1 mixes from any legacy stream by matrix upmixing. Keeps any additional channels.

Public variables

bool loopRestart the source when finished.
bool matrixUpmixCreates missing channels from existing ones. Works best if the source is matrix-encoded.
Action OnPlaybackFinishedCalled when a non-looping source has generated its last sample blocks.
int timeSamplesPlayback position in samples.